package sz.com.postoffice.jxyzwgcase.dao.node;

import org.apache.ibatis.annotations.Param;
import sz.com.postoffice.jxyzwgcase.pojo.OperationtargetInfo;

import java.util.List;

public interface TOperationtargetInfoDao {
    int deleteByPrimaryKey(Integer id);

    int insert(OperationtargetInfo record);

    int insertList(@Param("list") List<OperationtargetInfo> record);

    int insertSelective(OperationtargetInfo record);

    OperationtargetInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OperationtargetInfo record);

    int updateByPrimaryKey(OperationtargetInfo record);

    /**
     * 查询时间段类满足条件的所有对象
     * @param startTime
     * @param endTime
     * @param operationtargetInfo
     * @return
     */
    List<OperationtargetInfo> selectPeriodByEntity(@Param("startTime") String startTime,@Param("endTime") String endTime,@Param("entity") OperationtargetInfo operationtargetInfo);
}